<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN 2.0//EN" "https://www.springframework.org/dtd/spring-beans-2.0.dtd">

<beans>

	<bean id="aapc" class="org.springframework.aop.framework.autoproxy.DefaultAdvisorAutoProxyCreator">
		<property name="customTargetSourceCreators">
			<list>
				<ref bean="aapc.quickTargetSourceCreator"/>
			</list>
		</property>
	</bean>

	<bean id="aapc.quickTargetSourceCreator"
		class="org.springframework.aop.framework.autoproxy.target.QuickTargetSourceCreator"/>

	<bean id="test" scope="prototype" class="org.springframework.beans.testfixture.beans.TestBean">
		<property name="name"><value>Rod</value></property>
		<property name="spouse"><ref bean="wife"/></property>
	</bean>

	<bean id="wife" class="org.springframework.beans.testfixture.beans.TestBean">
		<property name="name"><value>Kerry</value></property>
	</bean>

	<!-- Prefix means it will be pooled -->
	<bean id=":test" class="org.springframework.beans.testfixture.beans.TestBean">
		<property name="name"><value>Rod</value></property>
		<property name="spouse"><ref bean="wife"/></property>
	</bean>

	<!-- Prefix means it will be thread local -->
	<bean name="%test" scope="prototype" class="org.springframework.beans.testfixture.beans.TestBean">
		<property name="name"><value>Rod</value></property>
		<property name="spouse"><ref bean="wife"/></property>
	</bean>

	<!-- Prefix means it will be a prototype target source -->
	<bean name="!test" scope="prototype" class="org.springframework.beans.testfixture.beans.TestBean">
		<property name="name"><value>Rod</value></property>
		<property name="spouse"><ref bean="wife"/></property>
	</bean>

</beans>	
